<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>008.4.3.语法糖-类-静态方法</title>
</head>
<body>
    
</body>
<script>
    class Person {
        constructor(){
            this.name = 'init'
            this.age = 18

            // this.locate = ()=> {
            //     console.log('instance this.name : ' , this.name );
            // }
        }

        locate(){
            console.log('print this.name : ' , this.name );
        }

        static locate(){
            console.log('static method , ' , this );
        }
    }


    let p01 = new Person();
    p01.locate();  // 
    Person.prototype.locate(); //
    
    // Person.locate();

    console.log(Person.prototype.constructor == Person);
</script>
</html>